package com.example.sjly.ui.order;

import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

@Entity(tableName = "OrderTable")
public class Order {

    @PrimaryKey(autoGenerate =true)
    private int id;

    private int webId;//服务器id
    private int localId;//本地id

    private String orderUUID;//订单id

    private String typeUUID;//订单类型id
    private String typeName;//订单类型名字
    private int typeIcon;//订单类型图标

    private int orderState;//订单状态
    private int commodityState;//商品状态

    private String commodityUUID;
    private String commodityName;
    private int commodityImg;

    private double price;
    private int amount;
    private String commodityParam1Name;
    private String commodityParam1Content;
    private String commodityParam2Name;
    private String commodityParam2Content;
    private String commodityParam3Name;
    private String commodityParam3Content;

    private double total;
    private double discount;

    @Ignore
    public Order() {
    }

    public Order(String typeName, String commodityName) {
        this.typeName = typeName;
        this.commodityName = commodityName;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getWebId() {
        return webId;
    }

    public void setWebId(int webId) {
        this.webId = webId;
    }

    public int getLocalId() {
        return localId;
    }

    public void setLocalId(int localId) {
        this.localId = localId;
    }

    public String getOrderUUID() {
        return orderUUID;
    }

    public void setOrderUUID(String orderUUID) {
        this.orderUUID = orderUUID;
    }

    public String getTypeUUID() {
        return typeUUID;
    }

    public void setTypeUUID(String typeUUID) {
        this.typeUUID = typeUUID;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public int getTypeIcon() {
        return typeIcon;
    }

    public void setTypeIcon(int typeIcon) {
        this.typeIcon = typeIcon;
    }

    public int getOrderState() {
        return orderState;
    }

    public void setOrderState(int orderState) {
        this.orderState = orderState;
    }

    public int getCommodityState() {
        return commodityState;
    }

    public void setCommodityState(int commodityState) {
        this.commodityState = commodityState;
    }

    public String getCommodityUUID() {
        return commodityUUID;
    }

    public void setCommodityUUID(String commodityUUID) {
        this.commodityUUID = commodityUUID;
    }

    public String getCommodityName() {
        return commodityName;
    }

    public void setCommodityName(String commodityName) {
        this.commodityName = commodityName;
    }

    public int getCommodityImg() {
        return commodityImg;
    }

    public void setCommodityImg(int commodityImg) {
        this.commodityImg = commodityImg;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public String getCommodityParam1Name() {
        return commodityParam1Name;
    }

    public void setCommodityParam1Name(String commodityParam1Name) {
        this.commodityParam1Name = commodityParam1Name;
    }

    public String getCommodityParam1Content() {
        return commodityParam1Content;
    }

    public void setCommodityParam1Content(String commodityParam1Content) {
        this.commodityParam1Content = commodityParam1Content;
    }

    public String getCommodityParam2Name() {
        return commodityParam2Name;
    }

    public void setCommodityParam2Name(String commodityParam2Name) {
        this.commodityParam2Name = commodityParam2Name;
    }

    public String getCommodityParam2Content() {
        return commodityParam2Content;
    }

    public void setCommodityParam2Content(String commodityParam2Content) {
        this.commodityParam2Content = commodityParam2Content;
    }

    public String getCommodityParam3Name() {
        return commodityParam3Name;
    }

    public void setCommodityParam3Name(String commodityParam3Name) {
        this.commodityParam3Name = commodityParam3Name;
    }

    public String getCommodityParam3Content() {
        return commodityParam3Content;
    }

    public void setCommodityParam3Content(String commodityParam3Content) {
        this.commodityParam3Content = commodityParam3Content;
    }

    public double getTotal() {
        return total;
    }

    public void setTotal(double total) {
        this.total = total;
    }

    public double getDiscount() {
        return discount;
    }

    public void setDiscount(double discount) {
        this.discount = discount;
    }
}
